import { exportWeb3Instance } from '@/utils/provider';

import addresses from '@/config/constants/contracts.js';

import ERC721Tokenabi from '@/config/abi/ERC721Token.json';
const getContract = (abi, address) => {
  const simpleWeb3 = exportWeb3Instance();
  return new simpleWeb3.eth.Contract(abi, address);
};
export const getERC721TokenContract = () => {
  return getContract(ERC721Tokenabi, addresses.ERC721Token);
};

